package org.chen.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.chen.model.NewsEntity;
import org.chen.model.dto.NewsQueryDTO;

public interface INewsEntityService extends IService<NewsEntity> {
    Page<NewsEntity> getNewsList(NewsQueryDTO query);

    void saveNews(NewsEntity news);

    void publishNews(Long id);

    void offlineNews(Long id);

    void deleteNews(Long id);
}
